package com.aric.springbootmusic.entity.pojo;


import com.aric.springbootmusic.entity.pojo.BaseClass;
import com.aric.springbootmusic.entity.pojo.Permission;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor

@TableName(value="role")
public class Role extends BaseClass {
    @TableId(value="role_id",type=IdType.AUTO)
    private Integer roleId;
    private String roleName;
    private String roleDesc;
    @TableLogic(value= "0",delval= "1")
    private Integer isDelete;
    @TableField(exist = false)
    private List<Permission> permissionList;
}
